﻿<Window x:Class="PatientFindingsWindow"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" 
    xmlns:my="http://schemas.microsoft.com/wpf/2008/toolkit"
    xmlns:my1="clr-namespace:WpfCheckListBox;assembly=WpfCheckListBox"
    SizeToContent="WidthAndHeight" WindowStyle="None" AllowsTransparency="True" Icon="/Horizon.HMS;component/Images/POSIcon.ico"
    xmlns:local="clr-namespace:Horizon.HMS" WindowStartupLocation="CenterScreen" Background="Transparent" >
    <Border Background="White" BorderBrush="Navy" BorderThickness="2" CornerRadius="10">
        <Grid Margin="10" Background="{StaticResource WindowBackground}">
        <Grid.RowDefinitions>
            <RowDefinition Height="30"/>
            <RowDefinition Height="Auto"/>
            <RowDefinition Height="Auto"/>
        </Grid.RowDefinitions>
        <Grid.ColumnDefinitions>
            <ColumnDefinition Width="*"/>
            <ColumnDefinition Width="Auto"/>
        </Grid.ColumnDefinitions>
            <TextBlock Margin="20,2" FontSize="16" FontWeight="SemiBold" Foreground="{StaticResource TextLabelColor}">
            <Run Text="HMS (" />
            <Run Text="Your management partner..." FontSize="10" FontStyle="Italic"/>
            <Run Text=")" />
            <Run Text=" :: Findings"/>
        </TextBlock>
        <Button Grid.Column="2" Style="{DynamicResource CloseButtonStyle}" Width="11.195" Content="Button" x:Name="CloseButton" Cursor="Hand" HorizontalAlignment="Right" Margin="0,5.583,7.468,0" VerticalAlignment="Top" Height="12.77"/>
        <Button Grid.Column="2" Style="{DynamicResource MinimizeButtonStyle}" Width="12.402" Content="Button" x:Name="MinimizeButton" Cursor="Hand" HorizontalAlignment="Right" Margin="0,4.733,24.606,0" VerticalAlignment="Top" Height="13.537"/>
            <Path Data="M18,115 L616,115" Fill="#FFF4F4F5" Height="1" Margin="5" Width="510" Stretch="Fill" Stroke="White" Grid.Row="1" Grid.ColumnSpan="2"/>
            <Grid Grid.Row="2" Name="MainStack" Margin="10" HorizontalAlignment="Center">
                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="*"/>
                    <ColumnDefinition Width="*"/>
                </Grid.ColumnDefinitions>
                <Grid.RowDefinitions>
                    <RowDefinition Height="Auto"/>
                    <RowDefinition Height="Auto"/>
                    <RowDefinition Height="*"/>
                </Grid.RowDefinitions>
                <TextBlock Text="Finding Category:" Style="{StaticResource TextBlockStyle}"/>
                <ListBox Name="FindingCategoryListBox" Grid.Row="1" DisplayMemberPath="Name" SelectedValuePath="ID" Height="150" Margin="5" Width="130"/>
                <TextBlock Text="Findings:" Style="{StaticResource TextBlockStyle}" Grid.Column="1"/>
                <my1:CheckedListBox Name="FindingCheckedListBox" Grid.Row="1" Grid.Column="1" Height="150" Width="220" Margin="5"/>
                <my:DataGrid AutoGenerateColumns="False" Margin="5" Height="150" VerticalAlignment="Top" Grid.Row="2" Name="FindingsDataGrid" Grid.ColumnSpan="2">
                    <my:DataGrid.Columns>
                        <my:DataGridTextColumn Header="Type" Binding="{Binding findCategoryName}" IsReadOnly="True"/>
                        <my:DataGridTextColumn Header="Findings" Binding="{Binding findingsName}" IsReadOnly="True"/>
                        <my:DataGridTextColumn Header="Remarks" Binding="{Binding remarks}"/>
                    </my:DataGrid.Columns>
                </my:DataGrid>
            </Grid>
            <StackPanel Grid.Row="2" Grid.Column="1" Margin="3,100">
                <Button Content="Add Findings" Name="AddFindingsButton" Height="30" Width="110" Margin="3"/>
                <Button Content="Add New Finding" Name="AddNewFindingButton" Height="30" Width="110" Margin="3"/>
                <Button Content="OK" Name="OKButton" Height="30" Width="110" Margin="3"/>
                <Button Content="Cancel" Name="CancelButton" Height="30" Width="110" Margin="3"/>
            </StackPanel>
        </Grid>
    </Border>
</Window>
